psql: error: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket -var-run-postgresql-.s.PGSQL.5432

53

psql: error: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"? -

Try running to verify its working:

sudo service postgresql start

psql: error: connection to server on socket "/tmp/.s.PGSQL.5432" failed: No such file or directory Is the server running locally and accepting connections on that socket? -

$ rm /usr/local/var/postgres/postmaster.pid
$ brew services restart postgresql

PostgreSQL - is the server running locally and accepting connections on unix domain socket /tmp/.s.pgsql.5432 -

rm /usr/local/var/postgres/postmaster.pid

Comments

Submit
0 Comments